//引入createApp创建用实例
import { createApp } from 'vue'
//引入根组件App
import App from '@/App.vue'
//引入样式
import '@/style/reset.scss'
//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入国际化
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//引入路由
import router from '@/router/index.ts'
//引入pinia仓库
import pinia from '@/store'
//引入组件
import HospitalTop from '@/components/hospital_top/index.vue'
import HospitalBottom from '@/components/hospital_bottom/index.vue'
import Login from '@/components/login/index.vue'
import person from '@/components/person/person.vue'
//使用creatApp创建应用实例
const app = createApp(App);
//注册组件
app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)
app.component('Login',Login)
app.component('person',person)
//使用路由
app.use(router)
//引入路由鉴权
import '@/Authentication'
//安装pinia
app.use(pinia)
//安装element-plus
app.use(ElementPlus,{
    locale: zhCn,
})
//将app挂载到挂载点上
app.mount('#app');
